//
//  stacksBootcamp.swift
//  swiftUiTest
//
//  Created by Mac on 2023/6/25.
//

import SwiftUI

struct stacksBootcamp_11: View {
    var body: some View {
        VStack(alignment: .center,spacing: 10) {
            ZStack(alignment:.center){
                Rectangle()
                    .fill(Color.red)
                    .frame(width: 100,height: 100)
                
                Rectangle()
                    .fill(Color.green)
                    .frame(width: 80,height: 80)
                
                Rectangle()
                    .fill(Color.orange)
                    .frame(width: 60,height: 60)
            }
            
            Rectangle()
                .fill(Color.green)
                .frame(width: 100,height: 100)
            
            Rectangle()
                .fill(Color.orange)
                .frame(width: 100,height: 100)
            
           
            
            HStack(alignment: .top, content: {
                Rectangle()
                    .fill(Color.green)
                    .frame(width: 160,height: 200)
                
                Rectangle()
                    .fill(Color.orange)
                    .frame(width: 120,height: 150)
                
                Rectangle()
                    .fill(Color.red )
                    .frame(width: 80,height: 100)
            })
        }
            
        
    }
}

struct stacksBootcamp_Previews: PreviewProvider {
    static var previews: some View {
        stacksBootcamp_11()
    }
}
